<? include ("../init.php") ?>
<?
  $q_id = $_REQUEST['q_id'];
  $time = time();

  $sql = "UPDATE hs_qoute SET
  q_status=ABS(q_status-1),
  q_dateup=$time WHERE q_id=$q_id";

  $db->execute($sql);
  
  $data['status'] = 'success';
  
  echo json_encode($data);
?>